class MyMath:
    # 加
    @staticmethod
    def add(a, b):
        return a + b

    # 减
    @staticmethod
    def sub(a, b):
        return a - b

    # 乘
    @staticmethod
    def mul(a, b):
        return a * b

    # 除
    @staticmethod
    def divi(a, b):
        return a / b

    # 幂
    @staticmethod
    def po(a, b):
        return a ** b

    # 开方
    @staticmethod
    def st(a, b):
        return a ** (1 / b)


x = 27
y = 3
print(f"x+y={MyMath.add(x, y)}")
print(f"x-y={MyMath.sub(x, y)}")
print(f"x×y={MyMath.mul(x, y)}")
print(f"x÷y={MyMath.divi(x, y)}")
print(f"x的y次方={MyMath.po(x, y)}")
print(f"x的开y次方={MyMath.st(x, y)}")

print("---------------------------------")

class Taxi:
    number = None
    __load = None
    distance = None
    __address = None

    def __init__(self, name, num, load,dis,addr):
        self.name = name
        self.number=num
        self.__load=load
        self.distance=dis
        self.__address=addr



    @classmethod
    def goaddress(self):
        return print(f"到达目的地{self.__address}")


    def __str__(self):
        self.goaddress()
        return f"{self.name}车牌号为{self.number}的车行驶了{self.distance}公里"


class Didi(Taxi):

    def __init__(self,  num, load,dis,addr):
        self.name = "嘀嘀打车"
        self.number=num
        self.__load=load
        self.distance=dis
        self.__address=addr


class Uber(Taxi):
    def __init__(self, num, load ,dis,addr):
        self.name = "Uber优步中国"
        self.number=num
        self.__load=load
        self.distance=dis
        self.__address=addr





a=Uber(467237875 ,"1000kg" ,100 ,"世界之窗")

print(a)

